package com.example.adminframework.controller;

import com.example.adminframework.model.vo.SystemMonitoringVO;
import com.example.adminframework.response.ResultContent;
import com.example.adminframework.service.SysMonitoringService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "系统公共模块")
@RequestMapping(value = "/system_base/")
public class SystemBaseController {

    @Autowired
    private SysMonitoringService sysMonitoringService;


    @PostMapping("system/query")
    @ApiOperation("系统信息查询")
    public ResultContent<SystemMonitoringVO> queryPage() {
        SystemMonitoringVO systemMonitoringVo = sysMonitoringService.querySystemMonitorInfo();
        return ResultContent.success(systemMonitoringVo);
    }
}
